package tour.board.to;

public class ReCmBoard {

	private int reCmNo;
	private String reCmWriter;
	private String reCmContent;
	private String reCmWritedate;
	
	public ReCmBoard(){}

	public ReCmBoard(int reCmNo, String reCmWriter, String reCmContent,
			String reCmWritedate) {
		super();
		this.reCmNo = reCmNo;
		this.reCmWriter = reCmWriter;
		this.reCmContent = reCmContent;
		this.reCmWritedate = reCmWritedate;
	}

	public int getReCmNo() {
		return reCmNo;
	}

	public void setReCmNo(int reCmNo) {
		this.reCmNo = reCmNo;
	}

	public String getReCmWriter() {
		return reCmWriter;
	}

	public void setReCmWriter(String reCmWriter) {
		this.reCmWriter = reCmWriter;
	}

	public String getReCmContent() {
		return reCmContent;
	}

	public void setReCmContent(String reCmContent) {
		this.reCmContent = reCmContent;
	}

	public String getReCmWritedate() {
		return reCmWritedate;
	}

	public void setReCmWritedate(String reCmWritedate) {
		this.reCmWritedate = reCmWritedate;
	}

	@Override
	public String toString() {
		return "ReCmBoard [reCmNo=" + reCmNo + ", reCmWriter=" + reCmWriter
				+ ", reCmContent=" + reCmContent + ", reCmWritedate="
				+ reCmWritedate + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((reCmContent == null) ? 0 : reCmContent.hashCode());
		result = prime * result + reCmNo;
		result = prime * result
				+ ((reCmWritedate == null) ? 0 : reCmWritedate.hashCode());
		result = prime * result
				+ ((reCmWriter == null) ? 0 : reCmWriter.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReCmBoard other = (ReCmBoard) obj;
		if (reCmContent == null) {
			if (other.reCmContent != null)
				return false;
		} else if (!reCmContent.equals(other.reCmContent))
			return false;
		if (reCmNo != other.reCmNo)
			return false;
		if (reCmWritedate == null) {
			if (other.reCmWritedate != null)
				return false;
		} else if (!reCmWritedate.equals(other.reCmWritedate))
			return false;
		if (reCmWriter == null) {
			if (other.reCmWriter != null)
				return false;
		} else if (!reCmWriter.equals(other.reCmWriter))
			return false;
		return true;
	}
	
	
}
